package com.yingxin.yxerp.module.dingtalk.entity.enums;

/**
 * 企业微信 - 人事助手 - 社保状况
 */

public enum WeComSocialSecurity {

    ONE( 1, "交社保"),
    TWO( 2, "未交社保" ),
    ;

    private Integer socialSecurity;

    private String socialSecurityName;

    WeComSocialSecurity(Integer socialSecurity, String socialSecurityName) {
        this.socialSecurity = socialSecurity;
        this.socialSecurityName = socialSecurityName;
    }

    public Integer getSocialSecurity() {
        return socialSecurity;
    }

    public void setSocialSecurity(Integer socialSecurity) {
        this.socialSecurity = socialSecurity;
    }

    public String getSocialSecurityName() {
        return socialSecurityName;
    }

    public void setSocialSecurityName(String socialSecurityName) {
        this.socialSecurityName = socialSecurityName;
    }

    public static WeComSocialSecurity getEnum(Integer socialSecurity) {
        if( socialSecurity == null ){
            return null;
        }
        for (WeComSocialSecurity i : WeComSocialSecurity.values()) {
            if ( i.getSocialSecurity() == socialSecurity ) {
                return i;
            }
        }
        return null;
    }

}
